<?php
/* banner广告管理
* @Author: Jerry-chen
* @Date:   2014-07-14 13:43:41
* @Last Modified time: 2014-07-14 15:28:02
* @Last Modified by: Jerry-chen<uranusbill@163.com>
* @ Copyright (c) 2014 http://www.cooldreamer.com All rightsreserved.
*/
class AdModel extends Model
{
	// 指定表
	public $table = 'ad';
	/**
	 * [add_添加数据]
	 * @param [type] $data [description]
	 */
	public function add_($data=null)
	{
		return $this->add($data);
	}
	/**
	 * [get_all 获得所有数据]
	 * @return [type] [description]
	 */
	public function get_all($where=null)
	{

		return $this->where($where)->all();
	}
	public function del_($where){

		return $this->where($where)->del();
	}
	public function edit($where,$data)
	{
		return $this->where($where)->save($data);
	}
}